package com.cody.date160119;

/**
 * 测试ImmutableRGB类的immutable特性
 * Created by cody on 16/1/19.
 */
public class Exercise2 {

    public static void main(String[] args) {
        ImmutableRGB color = new ImmutableRGB(100,100,100,"unknown");
        System.out.println(color.getRGB());
        System.out.println(color.invert().getRGB());
        System.out.println(color.getRGB());
    }

}
